<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="/jquery.min.js"></script>
</head>
<body>
    <button>点我</button>
    <button>点我</button>
    <button>点我</button>
    <button>点我</button>
    <button>点我</button>
    <button>点我</button>
    <button>点我</button>
</body>
<script>
    $(function() {
        //1.隐式迭代，给所有的按钮都绑定了点击事件
        $('button').click(function() {
            // 2.当前的元素变化背景颜色
            //链式编程
            $(this).css('background','orange').siblings('button').css('background','')
            //3.其余的兄弟元素去掉背景颜色
           
        })
    })
</script>
</html>